import apis from './'
import request from '@/utils/request'

export function getUserList (parameter) {
  return request({
    url: apis.UserList,
    method: 'get',
    params: parameter
  })
}

export function getAllUser (parameter) {
  return request({
    url: `${apis.AllUser}?filter[is_win]=0`,
    method: 'get',
    params: parameter
  })
}

export function setWinner (id, data) {
  return request({
    url: `${apis.Winner}?id=${id}`,
    method: 'post',
    data: data
  })
}
